#!/bin/bash
date=$1
dir=$2
format=$3
source /home/zhangyi/anaconda3/bin/activate base
# today=`date +%Y_%-m_%-d`
file="game_error_$date.log"
file17="/home/zhangyi/workspace/pirate/gameserver/log/$file"
file18="/home/zhangyi/workspace/pirate/gameserver_test/log/$file"
script="/home/zhangyi/workspace/script/parse_errlog/parse_errlog.py"
python=python

if [ -f "$file17" ]; then
    $python $script --file $file17 --format $format --name "17_$file" --dir $dir
fi
if [ -f "$file18" ]; then
    $python $script --file $file18 --format $format --name "18_$file" --dir $dir
fi